From f5c637a788e8b7f52b543df4bfb6b4ec21d72986 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 17 Aug 2010 19:30:35 +0100 Subject: [PATCH] xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES Signed-off-by: Andre Przywara --- xen/common/trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/common/trace.c b/xen/common/trace.c index af2f46ed45..5b0c52e2a8 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -321,9 +321,9 @@ void __init init_trace_bufs(void) /* Calculate offset in u32 of first mfn */ calc_tinfo_first_offset(); - /* t_info size fixed at 2 pages for now. That should be big enough / small enough - * until it's worth making it dynamic. */ - t_info = alloc_xenheap_pages(1, 0); + /* t_info size is fixed for now. Currently this works great, so there + * seems to be no need to make it dynamic. */ + t_info = alloc_xenheap_pages(get_order_from_pages(T_INFO_PAGES), 0); if ( t_info == NULL ) { -- 2.30.2